package com.youha.dao.impl;

import com.youha.dao.UserDao;
import com.youha.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author youha
 * @create 2021-08-11 22:01
 */
public class UserDaoImpl implements UserDao {

    private List<String> strList;
    private Map<String,User> map;

    public void setStrList(List<String> strList) {
        this.strList = strList;
    }

    public void setMap(Map<String, User> map) {
        this.map = map;
    }

    private String name;
    private int age;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //    public UserDaoImpl(){
//        System.out.println("实现类的无参构造被调用");
//    }
//
//    public void init(){
//        System.out.println("初始化方法");
//    }
//    public void destroy(){
//        System.out.println("销毁方法");
//    }

    @Override
    public void save() {
//        System.out.println(name + "====" +age);
        System.out.println(strList + "==" + map);
        System.out.println("save……");
    }
}
